package com.siwei.mes.mapper.experiment;

import com.siwei.mes.common.base.BaseMapper;
import com.siwei.mes.entity.experiment.ExperimentSampleTake;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 试验台账取样(ExperimentSampleTake)表数据库访问层
 *
 * @author linzi
 * @since 2023-12-28 20:47:32
 */
public interface ExperimentSampleTakeMapper extends BaseMapper<ExperimentSampleTake> {
    /**
     * 获取所有
     *
     * @param entity
     * @return
     */
    List<ExperimentSampleTake> getList(ExperimentSampleTake entity);

    /**
     * 根据id获取
     *
     * @param id
     * @return
     */
    ExperimentSampleTake loadById(@Param("id") Long id);

    /**
     * 根据试验台账id查询
     *
     * @param experimentId
     * @return
     */
    ExperimentSampleTake selectByExperimentId(@Param("experimentId") Long experimentId);

    /**
     * 根据试验委托id删除
     *
     * @param experimentId 试验委托id
     */
    void deleteByExperimentId(@Param("experimentId") Long experimentId);
}
